package ex1;


import java.util.ArrayList;

/**
 * This Class stores data for our latexDoc.
 * 
 * 
 * @author Dennis Meyer, Sebastian Brodehl, Sebastian Schappert
 *
 */
public class CVData 
{
	private Color color;
	private Style style;
	private String givenName;
	private String lastName;
	private String photoPath;
	private String street;
	private String course;
	private String mobileNumber;
	private String email;
	private ArrayList<CVSection> sections = new ArrayList<>();
	
	public String getGivenName() {
		return givenName;
	}
	
	public void setGivenName(String givenName) {
		this.givenName = givenName;
	}
	
	
	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	
	public String getPhotoPath() {
		return photoPath;
	}
	
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	
	
	public String getStreet() {
		return street;
	}
	
	public void setStreet(String street) {
		this.street = street;
	}
	
	
	public String getCourse() {
		return course;
	}
	
	public void setCourse(String course) {
		this.course = course;
	}
	
	
	public String getMobileNumber() {
		return mobileNumber;
	}
	
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}
	
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String emailLine) {
		this.email = emailLine;
	}

	public ArrayList<CVSection> getSections() {
		return sections;
	}

	public void setSections(ArrayList<CVSection> sections) {
		this.sections = sections;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public Style getStyle() {
		return style;
	}

	public void setStyle(Style style) {
		this.style = style;
	}
	
	public void setThemeStyle(String readLine) {
		switch(readLine)
		{
			case "casual":
				this.style = Style.casual;
				break;
			case "classic":
				this.style = Style.classic;
				break;
			case "oldstyle":
				this.style = Style.oldstyle;
				break;
			case "banking":
				this.style = Style.banking;
				break;
			default:
				this.style = Style.classic;
				break;	
		}
	}

	public void setThemeColor(String readLine) {
		switch(readLine)
		{
			case "black":
				this.color = Color.black;
				break;
			case "blue":
				this.color = Color.blue;
				break;
			case "green":
				this.color = Color.green;
				break;
			case "grey":
				this.color = Color.grey;
				break;
			case "red":
				this.color = Color.red;
				break;
			default:
				this.color = Color.blue;
				break;
		}
		
	}
	
}
